package com.grouplay.entity;

import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

//实体类
public class Group implements Serializable {
    private Integer id;
    private Integer leaderId;
    private String leaderName;
    private String groupName;
    private String description;
    private Double totalBudget;
    private Double personalBudget;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date beginTime;
    private Date endTime;
    private Integer isEnd;
    private Integer numberOfMembers;
    private Double needMoney;

    public Double getNeedMoney() {
        return needMoney;
    }

    public void setNeedMoney(Double needMoney) {
        this.needMoney = needMoney;
    }

    public Integer getNumberOfMembers() {
        return numberOfMembers;
    }

    public void setNumberOfMembers(Integer numberOfMembers) {
        this.numberOfMembers = numberOfMembers;
    }

    public Integer getIsEnd() {
        return isEnd;
    }

    public void setIsEnd(Integer isEnd) {
        this.isEnd = isEnd;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getLeaderId() {
        return leaderId;
    }

    public void setLeaderId(Integer leaderId) {
        this.leaderId = leaderId;
    }

    public String getLeaderName() {
        return leaderName;
    }

    public void setLeaderName(String leaderName) {
        this.leaderName = leaderName;
    }

    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Double getTotalBudget() {
        return totalBudget;
    }

    public void setTotalBudget(Double totalBudget) {
        this.totalBudget = totalBudget;
    }

    public Double getPersonalBudget() {
        return personalBudget;
    }

    public void setPersonalBudget(Double personalBudget) {
        this.personalBudget = personalBudget;
    }

    public Date getBeginTime() {
        return beginTime;
    }

    public void setBeginTime(Date beginTime) {
        this.beginTime = beginTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    @Override
    public String toString() {
        return "Group{" +
                "id=" + id +
                ", leaderId=" + leaderId +
                ", leaderName='" + leaderName + '\'' +
                ", groupName='" + groupName + '\'' +
                ", description='" + description + '\'' +
                ", totalBudget=" + totalBudget +
                ", personalBudget=" + personalBudget +
                ", beginTime=" + beginTime +
                ", endTime=" + endTime +
                ", isEnd=" + isEnd +
                '}';
    }
}
